package com.feizhoutuobang.shapeline.util.mail;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

public class MailAuthenticator extends Authenticator {

	private String mailAccount;
	private String mailPass;
	
	public void setMailAccount(String mailAccount) {
		this.mailAccount = mailAccount;
	}

	public void setMailPass(String mailPass) {
		this.mailPass = mailPass;
	}

	public MailAuthenticator() {
    }

    protected PasswordAuthentication getPasswordAuthentication() {
        return new PasswordAuthentication(mailAccount, mailPass);
    }
} 